import 'package:flutter/material.dart';
import './layout_app.dart';
import './pages/home.dart';
import './pages/classify.dart';
import './pages/mine.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const LayoutApp(),
      // initialRoute: '/',
      routes: <String,WidgetBuilder>{ //路由注册
        // "/": (BuildContext context) => const LayoutApp(),
        "/home": (BuildContext context) => const Home(),
        "/classify": (BuildContext context) => const Classify(),
        "/mine": (BuildContext context) => const Mine(),
      },
    );
  }
}
